import store from '@/store'

// 验证权限
export function checkPermission(policy) {
  const abpConfig = store.getters.abpConfig
  if (abpConfig && abpConfig.auth.grantedPolicies[policy]) {
    return true
  } else {
    return false
  }
}
